managed.opCast

Casts a basic type to a similar (aka same sized) type

  1. managed!(const(Type)) opCast()
  2. managed!(immutable(Type)) opCast()
  3. managed!(CopyConstness!(Type, Type2)) opCast()
  4. managed!(CopyConstness!(Type, Type2)) opCast()
  5. managed!(CopyConstness!(Type, Type2)[]) opCast()
  6. managed!(CopyConstness!(Type, Type2)) opCast()
    struct managed(Type)
    static if(!(is(Type == class) || is(Type == interface)))
    static if(!(is(Type : TypeIf_Class[], TypeIf_Class) && (is(TypeIf_Class == class) || is(TypeIf_Class == interface))))
    static if(isBasicType!Type || is(Type == struct))
    managed!(CopyConstness!(Type, Type2))
    opCast
    (
    Type2 : managed!Type2
    )
    ()
    if (
    (
    isBasicType!Type2 ||
    is(Type2 == struct)
    )
    &&
    Type2.sizeof == Type.sizeof
    )
  7. managed!(CopyConstness!(TypeIf_StructBasic, Type2)[]) opCast()

Meta